<template>
  <el-form
    ref="ruleForm"
    :model="ruleForm"
    :rules="rules"
    label-position="left"
    class="examination"
  >
    <el-form-item class="el-large" label="省份" prop="province">
      <el-select v-model="ruleForm.province"  placeholder="请选择">
        <el-option label="Zone one" value="shanghai" />
        <el-option label="Zone two" value="beijing" />
      </el-select>
    </el-form-item>
    <a href="https://cn.ceibs.edu/node/7524" class="link" target="_blank" >中欧考试题型和例题介绍</a>
    <div class="title">标准GMAT考试成绩</div>
    <p class="describe">
      如果您选择参加GMAT考试，成绩需在5年有效期内650分以上，请将GMAT成绩单上传至报名表--材料上传--其他专业证书栏，并联系GMAC，在报名截止前将您的成绩单由GMAC寄至中欧国际工商学院（CEIBS）。
    </p>
    <el-form-item class="space-around" label="考试日期">
      <div class="el-Small">
        <el-select v-model="ruleForm.year"  placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </div>
      <span class="filling">年</span>
      <div class="el-Small">
        <el-select v-model="ruleForm.month"  placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </div>
      <span class="filling">月</span>

      <div class="el-Small">
        <el-select v-model="ruleForm.day"  placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </div>
      <span class="filling">日</span>
    </el-form-item>
    <el-form-item class="el-large" label="考试成绩">
      <el-input v-model="ruleForm.achievement" />
    </el-form-item>
    <div class="footer-but">
      <el-button type="primary" @click="saveForm('ruleForm')">保存</el-button>
      <el-button type="info" @click="resetForm('ruleForm')">重置</el-button>
    </div>
  </el-form>
</template>

<script>
import rules from "@/util/rules.js";
export default {
  name: "examination", //笔试
  props: {},
  data() {
    return {
      ruleForm: {
        province: "",
        year: "",
        month: "",
        day: "",
        achievement: "",
      },
      rules: rules,
    };
  },
  methods: {
    saveForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          alert("submit!");
        } else {
          console.log("error submit!!");
          return false;
        }
      });
    },
    resetForm(formName) {
      (this.ruleForm = {}), this.$refs[formName].resetFields();
    },
  },
  components: {},
};
</script>

<style scoped lang="scss">
.examination {
  height: 1100px;
  .describe {
    margin-bottom: 36px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #5a5a5a;
    line-height: 30px;
    letter-spacing: -0.04px;
  }
  .link {
    display: inline-block;
    margin-top: 23px;
    margin-left: 268px;
    width: 345px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    background: #88a4b9;
    border-radius: 5px;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
  }
  .title {
    font-size: 22px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #003963;
    margin: 60px 0 30px;
  }
  .footer-but {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    ::v-deep .el-button {
      width: 250px;
      height: 55px;
      margin: 30px 22.5px;
    }
  }
}
@media (max-width: 768px) {
  .examination {
    height: 849px;
    .describe {
      font-size: 14px;
    }
    .title {
      font-size: 16px;
      margin: 60px 0 30px;
    }
    .link {
      display: inline-block;
      margin-top: 23px;
      margin-left: 30%;
      width: 230px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      background: #88a4b9;
      border-radius: 5px;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
      cursor: pointer;
    }
    .footer-but {
      ::v-deep .el-button {
        width: 125px;
        height: 40px;
        margin: 31px 22.5px;
        font-size: 16px;
      }
    }
  }
}
</style>
